// pages/my/my-useTip/my-useTip.js
Page({
  data: {
    screenWidth: 0,
    screenHeight: 0,
    imgwidth: 0,
    imgheight: 0,
  },
  onLoad: function () {
    var _this = this;
    wx.getSystemInfo({
      success: function (res) {
        console.log(res)
        _this.setData({
          screenHeight: res.windowHeight,
          screenWidth: res.windowWidth,
        });
      }
    });

  },
  imageLoad: function (e) {
    console.log(e)
    var that = this;
    that.setData({
      imgwidth: that.data.screenWidth,
      imgheight: that.data.screenHeight
    })
  }  

})